
<?php
$class_name = 'event';
get_header(); ?>

	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">

		<div class="page-title page-title-funding">RECENT EVENT</div>

		<?php if ( have_posts() ) : ?>

			<?php while ( have_posts() ) : the_post(); ?>
				<table class="category_table <?php echo $class_name; ?>_table">

				<tr>
					<td Colspan=3 class="category_table_name <?php echo $class_name; ?>_table_name"><?php the_title(); ?></td>
				</tr>
				<tr>
					<td class="category_table_head category_<?php echo $class_name; ?>_table_head">Date</td>
					<td class="category_table_head category_<?php echo $class_name; ?>_table_head">Place</td>
					<td class="category_table_head category_<?php echo $class_name; ?>_table_head">Hosts</td>
				</tr>
				<tr>
					<td class="category_table_item events_table_date"><?php the_field('event_date'); ?></td>
					<td class="category_table_item events_table_place"><?php the_field('event_place'); ?></td>
					<td class="category_table_item events_table_hosts"><?php the_field('event_hosts'); ?></td>
				</tr>
				<tr>
					<td colspan=3 class="category_table_content"><?php the_content(); ?></td>
				</tr>
				</table>
			<?php endwhile; ?>

		<?php else : ?>
			<?php get_template_part( 'content', 'none' ); ?>
		<?php endif; ?>

		</div><!-- #content -->
	</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
